Strava - Get Activity IDs On This Day
(19 actions, 13 KB)
0 Format Date
[CurrentDate]
➔ MMM dd
»
5
DateFormatStyle
:
Custom
DateFormat
:
MMM dd
1 Format Date
[CurrentDate]
➔ Year
»
4
DateFormatStyle
:
Custom
DateFormat
:
yyyy
2 Number
5
»
3 Repeat
[2 Number]
Times
4 Calculate
[1 Year]
-
[Repeat Index]
»
5 Date
Specified Date
»
DateActionDate
:
[0 MMM dd]
,
[4 Calculation Result]
6 Run Shortcut
List Strava Activities on Date
»
Input
:
[5 Date]
Workflow
:
{ "workflowIdentifier": "A4C4DC92-3B12-448A-8002-6AE3FBAC8AD9", "workflowName": "List Strava Activities on Date", "isSelf": false }
7 Repeat[2] with Each in
[6 Shortcut Result]
8 Comment
https://developers.strava.com/docs/reference/#api-Activities-getActivityById
9 Get Dictionary Value for
total_photo_count
in
[Repeat Item 2]
»
10 If
[9 Dictionary Value
as Number
]
>
0
11 Get Dictionary Value for
sport_type
in
[Repeat Item 2]
»
12 If
[11 Dictionary Value
’s Name
]
is not
VirtualRide
13 Add
[Repeat Item 2
as Dictionary.id
]
to Variable
activityIDs
14 End If
15 End If
16 End Repeat[2] with Each ▵
7
17 End Repeat Times ▵
3
18 Stop and Output
[activityIDs]